ns16550/PCI: fix skipping of devices
authorJan Beulich <jbeulich@suse.com>
Fri, 30 Nov 2018 11:07:33 +0000 (12:07 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 30 Nov 2018 11:07:33 +0000 (12:07 +0100)
commitc34fe0468acc61aca62422483c37a1309708f1cb
treef1981356ff39f0851207dd6c6253577023af533f
parent402411ec40e451d1ad051fb7e59aa6374cc4212a
ns16550/PCI: fix skipping of devices

Selecting between single/multiple BAR mode should happen after checking
whether to skip the present device, or else multi-BAR devices won't be
skipped correctly, due to port_idx getting set to zero in that case.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
xen/drivers/char/ns16550.c